﻿namespace Super
{
	public class SimpleSingle<T> :IInit where T : new()
	{
		public virtual void OnInit()
		{
			if (ins == null)
			{
				object obj = this;
				ins = (T)obj;
			}
		}

		public static T ins;
		public static T Ins
		{
			get
			{
				if (ins == null)
					ins = new T();
				return ins;
			}
		}
	}

}
